import request from '../utils/request.js'

/**
 * 备件列表查询
 */
export function partList() {
  return request({
    url: '/part/partList',
    method: 'get'
  })
}

/**
 * 添加备件记录
 */
export function addPart(param) {
  return request({
    url: '/part/addPart',
    method: 'post',
    data: param
  })
}

/**
 * 备件出库记录
 * @param {*} param 
 */
export function outPart(param) {
  return request({
    url: '/part/outPart',
    method: 'post',
    data: param
  })
}

/**
 * 获取备件信息
 * @param {*} param 
 */
export function getPartInfo(param) {
  return request({
    url: '/part/getPartInfo',
    method: 'post',
    data: param
  })
}
